﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StateGrid.OperationLog
{
    /// <summary>
    /// 表示一条日志记录包含的内容。
    /// </summary>
    public class OperationLogItem
    {
        /// <summary>
        /// 操作类型，取值范围：INSERT/DELETE/UPDATE
        /// </summary>
        public String opType
        {
            get;
            set;
        }
        /// <summary>
        /// 操作的数据库表名
        /// </summary>
        public String opTable
        {
            get;
            set;
        }
        /// <summary>
        /// 操作数据库表的对象id
        /// </summary>
        public String opObjectID
        {
            get;
            set;
        }
        /// <summary>
        /// 操作涉及的全文页数
        /// </summary>
        public int opPageCount
        {
            get;
            set;
        }
        /// <summary>
        /// 操作涉及的书刊
        /// </summary>
        public String opBookIn
        {
            get;
            set;
        }
        /// <summary>
        /// 时间
        /// </summary>
        public DateTime opDate
        {
            get;
            set;
        }
        /// <summary>
        /// 操作员
        /// </summary>
        public String opPerson
        {
            get;
            set;
        }
        /// <summary>
        /// 记录操作模式，判断是否属于批量操作。取值范围SINGLE/BATCH。
        /// </summary>
        public String opMode
        {
            get;
            set;
        }

        /// <summary>
        /// 操作的内容
        /// </summary>
        public String opContent
        {
            get;
            set;
        }
    }
}
